# *-*- coding:utf-8 -*-
# @Author  : Eliza
# @Time    : 2021/7/18 0:02
# @Software : RubyMine

=begin
  +   :字符连接本
  <<  :字符带入
  *   :字符循环

=end
a = "aaaaa"
b = "bbbbb"
puts a + ",,," + b
a << b
# a.append(b)

puts a + ":" + b
puts a * 3

puts "我是\n哈登"
puts '我是\n卡戴珊'
puts "#{10 + 20 + 30}"
puts '#{10+20+30}'
puts "\""
puts '\''
puts "============="
a1 = 1
a2 = 1.5
a3 = 1.9
a4 = 2.1

puts a1 + 1
puts a1.to_s + "1"
puts "-_--去掉小数-----"
puts a2.to_i #1
puts a3.to_i #1
puts a4.to_int #1
puts "-_--去掉小数-----"
puts a1.to_f #1.0
puts 20.to_f.to_i #20


